﻿<%@ Page Language="c#" CodeBehind="NewStaff.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.Position.NewStaffPage" %>

<html>
<head runat="server">
  <title>NewStaff</title>
  <uds:Style runat="server" Href="~/css/BasicLayout.css" />
  <style>
    .td { font-size: 14px; color: #0000ff; }
  </style>
</head>
<body leftmargin="0" topmargin="0">
  <form id="NewStaff" method="post" runat="server">
    <ajax:ToolkitScriptManager runat="server" EnableScriptGlobalization="true" EnableScriptLocalization="true" />
    <uds:PageTitle runat="server" HintImage="~/DataImages/ClientManage.gif" Title="员工注册" />
    <table class="gbtext" style="border-collapse: collapse" bordercolor="#93bee2" cellspacing="0" cellpadding="0" width="100%" border="1">
      <colgroup>
        <col style="text-align: right; padding: 4px; line-height: 120%;" />
        <col style="text-align: left; padding: 4px; line-height: 120%;" />
      </colgroup>
      <tr bgcolor="#e8f4ff">
        <td>用户姓名:</td>
        <td>
          <asp:TextBox ID="txtStaffName" CssClass="InputCss" runat="server" Columns="70" Width="382" /><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请输入姓名" ControlToValidate="txtStaffName" Font-Size="X-Small" /><asp:Literal ID="message" runat="server" EnableViewState="False" /></td>
      </tr>
      <tr>
        <td>真实姓名:</td>
        <td>
          <asp:TextBox ID="txtRealName" CssClass="InputCss" runat="server" Columns="70" Width="382" /><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请输入真实姓名" ControlToValidate="txtRealName" Font-Size="X-Small" /></td>
      </tr>
      <tr bgcolor="#e8f4ff">
        <td>性别:</td>
        <td><asp:RadioButton ID="rb_male" runat="server" GroupName="rSex" Checked="True" Text="男" /><asp:RadioButton ID="rb_female" runat="server" GroupName="rSex" Checked="False" Text="女" /></td>
      </tr>
      <tr>
        <td>出生日期:</td>
        <td>
          <uds:DateTextBox ID="txtBirthday" ReadOnly="true" CssClass="InputCss" runat="server" Columns="70" Width="383" />
        </td>
      </tr>
      <tr bgcolor="#e8f4ff">
        <td>密码:</td>
        <td>
          <asp:TextBox ID="txtPassword" runat="server" CssClass="InputCss" Width="383px" TextMode="Password" /><asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="密码不能为空" ControlToValidate="txtPassword" Font-Size="X-Small" /></td>
      </tr>
      <tr>
        <td>重复密码:</td>
        <td>
          <asp:TextBox ID="txtRePassword" runat="server" CssClass="InputCss" Width="382px" TextMode="Password" /><asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="密码确认错误" ControlToValidate="txtRePassword" Font-Size="X-Small" ControlToCompare="txtPassword" /></td>
      </tr>
      <tr bgcolor="#e8f4ff">
        <td>电子邮件:</td>
        <td>
          <asp:TextBox ID="txtEmail" CssClass="InputCss" runat="server" Columns="70" Width="382" /><asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="请填写电子邮件地址" ControlToValidate="txtEmail" Font-Size="X-Small" Display="Dynamic" /><asp:RegularExpressionValidator ID="checkmail" runat="server" ErrorMessage="错误的EMAIL格式" ControlToValidate="txtEmail" Display="Dynamic" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" /></td>
      </tr>
      <tr>
        <td>公司电话:</td>
        <td>
          <asp:TextBox ID="txtPhone" CssClass="InputCss" runat="server" Columns="70" Width="382" /></td>
      </tr>
      <tr bgcolor="#e8f4ff">
        <td>移动电话:</td>
        <td>
          <asp:TextBox ID="txtMobile" CssClass="InputCss" runat="server" Columns="70" Width="382" /><asp:RegularExpressionValidator ID="checkmobile" runat="server" ErrorMessage="手机号错误" ControlToValidate="txtMobile" Font-Size="X-Small" ValidationExpression="\d*" /></td>
      </tr>
      <tr>
        <td>职位级别:</td>
        <td>
          <asp:TextBox ID="txtCaste" CssClass="InputCss" runat="server" Columns="70" Width="382" /><asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="不能为空" ControlToValidate="txtCaste" /><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="必须为数字" ControlToValidate="txtCaste" ValidationExpression="\d*" /></td>
      </tr>
      <tr id="myposition" runat="server">
        <td>所属职位:</td>
        <td>
          <asp:DropDownList ID="cboPosition" runat="server" Width="383px" />
        </td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><asp:CheckBox ID="cbRemind" runat="server" Width="240px" Font-Size="X-Small" Text="站内短消息提醒(提醒公司全体员工)" Height="16px" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>
          <div>
            <script language="javascript" type="text/javascript">
            //<!--
	          function ReturnBack(ReturnType)
	          {			
		          if(ReturnType==0)
			          location.href ="ListView.aspx?Position_ID=<%=PositionID%>";	
		          else
			          location.href ="../Staff/ManageStaff.aspx";			
	          }
            //-->
            </script>
            <asp:Button ID="cmdSubmit" runat="server" CssClass="redButtonCss" Width="60px" Text="确定" Height="20px" />&nbsp;&nbsp;&nbsp;&nbsp; <input class="redButtonCss" style="width: 60px; height: 20px" onclick="ReturnBack(<%=ReturnPage%>)" type="button" value="返 回" name="cmdReturn">
          </div>
        </td>
      </tr>
    </table>
  </form>
</body>
</html>
